package tec.stan.ling.intro;

import org.eclipse.ui.ISharedImages;
import org.eclipse.ui.application.IWorkbenchConfigurer;
import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
import org.eclipse.ui.application.WorkbenchAdvisor;
import org.eclipse.ui.application.WorkbenchWindowAdvisor;

import tec.stan.ling.LingRCP;

public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {

    public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {
        return new ApplicationWorkbenchWindowAdvisor(configurer);
    }
    
    public void initialize(IWorkbenchConfigurer configurer) {
        super.initialize(configurer);
//        WorkbenchAdapterBuilder.registerAdapters();
		configurer.declareImage(ISharedImages.IMG_OBJ_PROJECT, LingRCP
				.getImageDescriptor("icons/prj_obj.gif"), true);//$NON-NLS-1$
        configurer.setSaveAndRestore(true);
    }

	public String getInitialWindowPerspectiveId() {
		return LingPerspective.ID;
	}
}
